﻿/****************************** Module Header ******************************\
 * Module Name:  tUserDelivery.cs
 * Module Version:  1.0.0 (2013-01-25)
 * Copyright (c) AnyEB.Com (14507247@qq.com)
 * 
 * This source is subject to the GPL License.
 * See http://www.gnu.org/licenses/gpl.html.
 * All other rights reserved.
 * 
 * THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND, 
 * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED 
 * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE.
\***************************************************************************/

using System;

namespace UCL.Data.ORM.UMD
{
	/// <summary>
    /// 用户-购物设置-收货地址 数据实体类
	/// </summary>
    [DBTable(Common = "用户-购物设置-收货地址")]
	public class tUserDelivery
	{
		/// <summary>
		/// Guid编号
		/// </summary>
		public Guid ID { get { return _ID ?? default(Guid); } set { _ID = value; } }

        [DBColumn(Alias = "Guid编号", IsKey = true, DefaultValue = "newid()")]
		private Guid? _ID;

		/// <summary>
        /// 收货人姓名
		/// </summary>
		public string Consignee { get { return _Consignee; } set { _Consignee = value; } }

        [DBColumn(Alias = "收货人姓名", Length = "32")]
		private string _Consignee;

		/// <summary>
        /// 省份
		/// </summary>
		public string Province { get { return _Province; } set { _Province = value; } }

        [DBColumn(Alias = "省份", Length = "16")]
		private string _Province;

		/// <summary>
        /// 城市
		/// </summary>
		public string City { get { return _City; } set { _City = value; } }

        [DBColumn(Alias = "城市", Length = "16")]
		private string _City;

		/// <summary>
        /// 地区
		/// </summary>
		public string Area { get { return _Area; } set { _Area = value; } }

        [DBColumn(Alias = "地区", Length = "16")]
		private string _Area;

		/// <summary>
        /// 街道
		/// </summary>
		public string Street { get { return _Street; } set { _Street = value; } }

        [DBColumn(Alias = "街道", Length = "255")]
		private string _Street;

		/// <summary>
        /// 地址
		/// </summary>
		public string Address { get { return _Address; } set { _Address = value; } }

        [DBColumn(Alias = "地址", CanBeNull = true, Length = "255")]
		private string _Address;

		/// <summary>
        /// 邮编
		/// </summary>
		public string PostCode { get { return _PostCode; } set { _PostCode = value; } }

        [DBColumn(Alias = "邮编", CanBeNull = true, Length = "8")]
		private string _PostCode;

		/// <summary>
        /// 电话号码
		/// </summary>
		public string Telphone { get { return _Telphone; } set { _Telphone = value; } }

        [DBColumn(Alias = "电话号码", CanBeNull = true, Length = "32")]
		private string _Telphone;

		/// <summary>
        /// 手机号码
		/// </summary>
		public string Mobilephone { get { return _Mobilephone; } set { _Mobilephone = value; } }

        [DBColumn(Alias = "手机号码", CanBeNull = true, Length = "32")]
		private string _Mobilephone;

		/// <summary>
        /// 电子邮件
		/// </summary>
		public string Email { get { return _Email; } set { _Email = value; } }

        [DBColumn(Alias = "电子邮件", CanBeNull = true, Length = "32")]
		private string _Email;

		/// <summary>
        /// 是否设为默认
		/// </summary>
		public bool IsDefault { get { return _IsDefault ?? default(bool); } set { _IsDefault = value; } }

        [DBColumn(Alias = "是否设为默认", DefaultValue = "0")]
		private bool? _IsDefault;

		/// <summary>
		/// 扩展标签
		/// </summary>
		public string ExTags { get { return _ExTags; } set { _ExTags = value; } }

		[DBColumn(Alias="扩展标签", Length="16")]
		private string _ExTags;

		/// <summary>
		/// 排列次序
		/// </summary>
		public short Ordinal { get { return _Ordinal ?? default(short); } set { _Ordinal = value; } }

		[DBColumn(Alias="排列次序", DefaultValue="999")]
        private short? _Ordinal;

        /// <summary>
        /// 用户帐号
        /// </summary>
        public string UserName { get { return _UserName; } set { _UserName = value; } }

        [DBColumn(Alias = "用户帐号", CanBeNull = true, Length = "32")]
        private string _UserName;

		/// <summary>
		/// 创建时间
		/// </summary>
		public DateTime CreatedTime { get { return _CreatedTime ?? default(DateTime); } set { _CreatedTime = value; } }

		[DBColumn(Alias="创建时间", DefaultValue="getdate()")]
		private DateTime? _CreatedTime;

		/// <summary>
		/// 最后更新时间
		/// </summary>
		public DateTime ModifiedDate { get { return _ModifiedDate ?? default(DateTime); } set { _ModifiedDate = value; } }

		[DBColumn(Alias="最后更新时间", CanBeNull=true)]
		private DateTime? _ModifiedDate;

		/// <summary>
		/// 是否删除
		/// </summary>
		public bool IsDeleted { get { return _IsDeleted ?? default(bool); } set { _IsDeleted = value; } }

		[DBColumn(Alias="是否删除", DefaultValue="0")]
		private bool? _IsDeleted;

		/// <summary>
		/// 网站标签
		/// </summary>
		public string SiteTag { get { return _SiteTag; } set { _SiteTag = value; } }

		[DBColumn(Alias="网站标签", CanBeNull=true, Length="16")]
		private string _SiteTag;

	}
}
